package com.steakliu.sun.ratelimiter;

import com.steakliu.sun.ratelimiter.api.AbstractRateLimiter;
import com.steakliu.sun.spi.annotation.Join;
import org.redisson.Redisson;
import org.redisson.api.RRateLimiter;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.redisson.config.SingleServerConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 功能说明： Redis限流
 * <p>
 * Original @Author: steakliu-刘牌, 2023-02-07  21:55
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
@Join
public class RedisRateLimiter extends AbstractRateLimiter {

    private final Logger LOGGER = LoggerFactory.getLogger(RedisRateLimiter.class);
    private RRateLimiter rateLimiter;

    @Override
    public boolean tryAcquire() {
        return false;
    }

    @Override
    public void release() {

    }

    @Override
    public void init(int milliseconds, int permits) {

    }
}
